package com.wanmait.schedule.service;

import com.github.pagehelper.PageInfo;
import com.wanmait.schedule.entity.Notice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wanmait.schedule.entity.NoticeRecord;
import com.wanmait.schedule.entity.Student;
import com.wanmait.schedule.entity.Teacher;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通知 服务类
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
public interface NoticeService extends IService<Notice> {

    PageInfo<Notice> findAll(Notice notice, Integer pageNum);

    Boolean save(Map map);

    PageInfo<Teacher> findIdByTeacher(Integer id,Integer pageNum);

    PageInfo<Student> findIdByStudent(Integer id,Integer pageNum);

    Boolean delNoticeStudent(NoticeRecord noticeRecord);

    Boolean delNoticeTeacher(NoticeRecord noticeRecord);
    List<Notice> notices();

    Integer readNum(Integer id);
}
